@echo off
path d:\simc\engine\
REM path d:\downloads\simc-540-1-win64\

SET iterations=%2

echo.
echo Generating baseline %1 ...
echo.
simc.exe Base_%1.simc iterations=%iterations%0

D:\lua-wow\lua5.1 ReportExtract.lua

SET i=1
:try
if exist gen\Compare_%i%.simc (
	echo.
	echo Generating compare profile %1 %i% ...
	echo.
	type gen\Compare_%i%.simc
	simc.exe Base_%1.simc gen\Compare_%i%.simc iterations=%iterations%

	D:\lua-wow\lua5.1 ReportExtract.lua
	SET /A i+=1
	goto try
)

ren Compare.csv Compare_%1.csv

exit /b
